package com.guigu.youxuan.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("order_details")
public class OrderDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单明细ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
        private Integer goodsId;


    /**
     * 购物车Id
     */
    @TableField(exist = false)
    private Integer cartId;
    /**
     * 商品名称
     */
    @TableField(exist = false)
    private String name;


    /**
     * 商户id
     */
    @TableField(exist = false)
    private String merchantId;

    /**
     * 商品图片
     */
    @TableField(exist = false)
    private String imgLink;

    /**
     * 仓库商品id
     */
    @TableField(exist = false)
    private String warehouseDetailsId;

    /**
     * 仓库名称
     */
    @TableField(exist = false)
    private String warehouseName;

    /**
     * 所属订单id
     */
    private Integer ordersId;

    /**
     * 数量
     */
        private Integer amount;

    /**
     * 单价
     */
    private Double price;

    /**
     * 小计
     */
    private Double subtotal;

    /**
     * 退货标志
     */
    private String backTag;

    /**
     * 退货原因
     */
    private String backReason;

    /**
     * 退货状态
     */
    private String backState;


}
